package com.fbs.wowo.finance.service;

import com.fbs.wowo.exception.NoSuchDataException;

import java.io.OutputStream;
import java.math.BigDecimal;

public interface CashService {
    /**
     * @deprecated 网页授权
     * @param userId
     * @param outputStream
     * @return
     */
    String wxPreAuthUrl(String userId, OutputStream outputStream);

    /**
     *
     * @param code
     * @param userId
     */
    void wxAuth(String code, String userId);


    /**
     * 提现
     * @param ip
     * @param userId
     * @param fee
     * @throws NoSuchDataException
     */
    void wxCash(String ip, String userId, BigDecimal fee) throws NoSuchDataException;
    /**
     * 提现
     * @param ip
     * @param userId
     * @param password
     * @param fee
     * @throws NoSuchDataException
     */
    void wxCash(String ip, String userId, String password, BigDecimal fee) throws NoSuchDataException;

    /**
     * 账号是否绑定过微信
     * @param userId
     * @return
     */
    int hasBindWX(String userId);
}
